package com.onnext.androidsdk.module.view;

import android.view.View;
import android.widget.Button;
import com.onnext.androidsdk.R;
import com.onnext.androidsdk.base.BaseFragment;

public class ViewFragment extends BaseFragment {

    private CustomView customview;
    private Button button;
    @Override
    public int layoutId() {
        return R.layout.fragment_view;
    }

    @Override
    public void initView(View view) {
        button = view.findViewById(R.id.button);
        customview = view.findViewById(R.id.customview);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                customview.start(2000);
            }
        });
    }
}
